﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TDD_UnoGame
{
    public enum UnoGameColors
    {
        Blue = 0,
        Red = 1,
        Yellow = 2,
        Green = 3
    }

    public interface ICard
    {
        UnoGameColors Color { get; set; }
        int Number { get; set; }
    }

    public class Card : ICard
    {
        public UnoGameColors Color { get; set; }
        public int Number { get; set; }

        public Card(UnoGameColors color, int number)
        {
            if (number > 9 || number < 0) 
                throw new ArgumentOutOfRangeException("number should be between 0 and 9");

            Number = number;

            if((int)color > 3 || (int)color < 0 )
                throw new ArgumentOutOfRangeException("color should be between 0 and 3");

            Color = color;
        }
    }
}
